import request from '@/utils/request'

// 获取所有导航栏
export function getNavList() {
  return request({
    url: '/v1/admin/nav',
    method: 'get'
  })
}

// 删除指定导航栏
export function delNav(params) {
  return request({
    url: '/v1/admin/nav',
    method: 'delete',
    params: {
      Id: params
    }
  })
}

// 添加导航栏
export function addNav(params) {
  return request({
    url: '/v1/admin/nav',
    method: 'post',
    params
  })
}

// 更新导航栏
export function PutNav(params) {
  return request({
    url: '/v1/admin/nav',
    method: 'put',
    params
  })
}
